package com.rem.mp.controller;

import com.rem.mp.mapper.UserInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Rem
 * @date 2022-04-07
 */

@Slf4j
@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Autowired
    UserInfoMapper userInfoMapper;

    @PostMapping("/insert")
    public String insert() {
        Assert.isTrue(true, "i want to say");
        return "aa";
       /* UserInfo test = new UserInfo("test", new Date() + "");
        userInfoMapper.insert(test);*/
    }


}
